@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}
.ant-pro-page-container .ant-pro-card {
  border-radius: 9px;
}

.ant-pro-table .ant-pro-card {
  border-radius: 9px;
}
.ant-pro-table .ant-card {
  border-radius: 9px;
}
.ant-pro-page-container-children-content .ant-card .ant-pro-card {
  border-radius: 9px;
}
.ant-form .ant-card {
  border-radius: 9px;
}
.ant-modal {
  min-width: 550px;
}

.ant-pro-table-search {
  border-radius: 9px;
}
.ant-pagination.mini .ant-pagination-item {
  border-radius: 4px;
}
.ant-pro-table .ant-input-affix-wrapper,
.ant-form-item .ant-input-affix-wrapper,
.ant-form-item .ant-select:not(.ant-select-customize-input) .ant-select-selector,
.ant-form-item .ant-picker,
.ant-form-item .ant-input-number,
.ant-cascader-picker .ant-input {
  border-radius: 6px;
}
.ant-form-item-control-input-content .ant-input {
  border-radius: 6px;
}
.ant-design-pro .ant-btn {
  border-radius: 6px;
}
.ant-pro-form-list-container {
  width: 95%;
}
span.ant-tag {
  border-radius: 4px;
}
.ant-modal .ant-modal-header {
  border-radius: 9px 12px 0 0;
}
.ant-modal .ant-modal-content {
  border-radius: 9px;
}
.ant-popover .ant-popover-inner {
  min-width: 1px;
  margin-bottom: 1px;
  border-radius: 9px;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
